Ext.require(['*']);

Ext.onReady(function(){
    var menu = Ext.create('Ext.menu.Menu', {
        id: 'itemMenu',
        
        style: {
            overflow: 'visible'    // For the Combo popup
            
        },
        items: [ {
            text: 'I like Ext',
            width:'200',
            checked: true     // when checked has a boolean value, it is assumed to be a CheckItem
        }]
    });
    
    var tb = Ext.create('Ext.toolbar.Toolbar',{
//    	width:'100%'
    });
    tb.render('naviarea1');
    
    tb.add('-');
    tb.add({
        text:'商品管理',
        iconCls: 'blist',
        cls:'tbmenu',
        menu: menu  // assign menu by instance
    });
    
    tb.add('-');
    tb.add({
        text:'倉庫管理',
        iconCls: 'bmenu',
        cls:'tbmenu',
        menu: menu  // assign menu by instance
    });
    
    tb.add('-');
    tb.add({
        text:'注文管理',
        iconCls: 'bmenu',
        cls:'tbmenu',
        menu: menu  // assign menu by instance
    });
    
    tb.add('-');
    tb.add({
        text:'売上管理',
        iconCls: 'bmenu',
        cls:'tbmenu',
        menu: menu  // assign menu by instance
    });
    
    tb.add('-');
    tb.add({
        text:'価格競価',
        iconCls: 'bmenu',
        cls:'tbmenu',
        href: '/yakaten/kakakuPrice',
        hrefTarget:'_self'
    });
    
    tb.add('-');
    tb.add({
        text:'Amazon競価',
        iconCls: 'bmenu',
        cls:'tbmenu',
        href: '/yakaten/amazonPrice',
        hrefTarget:'_self'
    });
    
    tb.add('-');
    tb.add({
        text:'そのた',
        iconCls: 'bmenu',
        cls:'tbmenu'
    });
    
    tb.add('-');
    tb.add({
        text:'ホームへ',
        iconCls: 'bmenu',
        cls:'tbmenu'
    });
});